import os
import sys

thisDir = os.path.split(os.path.realpath(__file__))[0]
sys.path.append(os.path.join(thisDir, ".."))

import PAIConst
from PAI import PAI

configPath = os.path.join(thisDir, "API.py")
schemaDir = os.path.join(thisDir, "schema")
api = PAI(configPath, schemaDir)
if api:
    print("Create API successful")
else:
    print("Create API failed")
    exit
